from django.views.generic import DetailView, ListView, UpdateView, CreateView
from .models import Device
from .forms import DeviceForm


class DeviceListView(ListView):
    model = Device


class DeviceCreateView(CreateView):
    model = Device
    form_class = DeviceForm


class DeviceDetailView(DetailView):
    model = Device


class DeviceUpdateView(UpdateView):
    model = Device
    form_class = DeviceForm

